<?php 
namespace app\single\api;


use app\single\model\LogLoginModel;

class PlayerActive
{
    public function __construct()
    {
    }

    public function run($params)
    {
        $data["ret"] = 1;
        $pf = $params["pf"] ?? "xiwan2";

        $loginModel = new LogLoginModel();
        $returnData = $loginModel->getUserByOfflineOrSpiritBeast($pf);
        $data["data"] = $returnData;
        return $data;
    }
}